package Table;


import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTabbedPane;
import javax.swing.JTable;
import javax.swing.LookAndFeel;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;

import java.awt.BorderLayout;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableColumn;

import danhmuc.TiGia;

import trangchu.UtilDelegate;
import trangchu.TrangChu;
import java.awt.Dimension;
import java.beans.Statement;
import java.sql.Connection;
import java.sql.ResultSet;
import java.util.Vector;

public class TTiGia extends JPanel {
	
	Object data[][] = {};
    Object colunmNames[] = {"Mã TG", "Tên TG", "Quy Đổi TG ( theo VND )"};

	
	public TTiGia(TiGia TiGia) {
		JScrollPane scrollPane = new JScrollPane();
		JTable table = new JTable(data,colunmNames);
		
		//kich thuoc
		
		TableColumn col = table.getColumnModel().getColumn(0);		col.setPreferredWidth(200);
		TableColumn col1 = table.getColumnModel().getColumn(1);		col1.setPreferredWidth(200);
		TableColumn col2 = table.getColumnModel().getColumn(2);		col2.setPreferredWidth(200);
		
		table.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS);
		setLayout(new BorderLayout(0, 0));
		scrollPane.setViewportView(table);
		add(scrollPane);
		
		
		
	

	
	}
}
